package loon.srpg;

public class SRPGDsp {
	public final StatusDsp statusDsp;
	private static SRPGDsp instance;
	private SRPGDsp(){statusDsp=new StatusDsp();}
	
	public static SRPGDsp getInstance(){
		if(instance==null){
			instance=new SRPGDsp();
		}
		return instance;
	}
	
	public class StatusDsp{
		public String strength,dexterity,vitality,agility,magic,move,skill,level
		,hp,mp,exp,skillSteps;
		public StatusDsp(){
			strength="STR";
			dexterity="DEX";
			vitality="VIT";
			agility="AGI";
			magic="MAG";
			move="MOV";
			skill="skill";
			level="LEV";
			hp="HP";
			mp="MP";
			exp="EXP";
			skillSteps="Steps";
		}
		/**
		 * 
		 * @param status 依次为str,dex,vil,agi,mag,mov,skill,lev,hp,mp,exp,step
		 */
		public void setStatus(String[] status){
			if(status.length!=12){
				System.out.print("SRPGSet:Array out of bounds");
				return;
			}
			strength=status[0];
			dexterity=status[1];
			vitality=status[2];
			agility=status[3];
			magic=status[4];
			move=status[5];
			skill=status[6];
			level=status[7];
			hp=status[8];
			mp=status[9];
			exp=status[10];
			skillSteps=status[11];
		}
	}
}
